package com.verify.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.read.listener.ReadListener;
import com.verify.data.excel.ExcelTable1;

import java.util.ArrayList;
import java.util.List;

public class ExcelListenerTable1 implements ReadListener<ExcelTable1> {
    private List<ExcelTable1> table;

    public ExcelListenerTable1(List<ExcelTable1> table) {
        this.table = table;
    }

    @Override
    public void invoke(ExcelTable1 data, AnalysisContext context) {
        table.add(data);
    }

    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
}
